extends Line2D

const SIZE = 30 #Line2D的折点数

func _ready():
	clear_points()
	for i in range(SIZE):
		add_point(Vector2.ZERO)
		
func start(_position):
	for i in range(SIZE):
		set_point_position(i, _position)

func _update_trail(_position):
	remove_point(0)
	add_point(_position)
